package Test1;

public class People {
    private int code; // 编号
    private int location; // 位置

    public People(){

    }
    public People(int code, int location){
        this.code = code;
        this.location = location;
    }

    public int getCode(){
        return this.code;
    }
    public void setCode(int code){
        this.code = code;
    }

    public int getLocation(){
        return this.location;
    }
    public void setLocation(int location){
        this.location = location;
    }

    @Override
    public String toString() {
        return "People{" +
                "code=" + code +
                ", location=" + location +
                '}';
    }
}
